<?php
    $xtpl_show      = new XTemplate("view/supplier/show.htm");
    
    $id     = $_GET['id'];
    $title  = "Thông tin nhà cung cấp";
    
    $sql    = "SELECT * FROM supplier WHERE id_s='" . $id . "'";
    $result = mysql_query($sql);
    $row    = mysql_fetch_array($result);    
    
    $xtpl_show      -> assign('name', $row['name']);
    $xtpl_show      -> assign('email', $row['email']);
    $xtpl_show      -> assign('address', $row['address']);
    $xtpl_show      -> assign('phone', $row['phone']);
    
    $xtpl_show      -> parse("SHOW");
    $content        = $xtpl_show -> text("SHOW");
?>